//
//  TransactionRecordCell.m
//  DianDangDai
//
//  Created by bhf on 2017/12/20.
//  Copyright © 2017年 bhf. All rights reserved.
//

#import "TransactionRecordCell.h"

@implementation TransactionRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _content.layer.cornerRadius = 5;
    // Initialization code
}

- (void)setModel:(JYJLModel *)model {
    _model = model;
    if ([model.type isEqualToString:@"收入"]) {
        _money.text = [NSString stringWithFormat:@"+¥%ld",model.amount];
    } else {
        _money.text = [NSString stringWithFormat:@"-¥%ld",model.amount];
    }
    
    _type.text = [NSString stringWithFormat:@"%@",model.type];
    
    _record.text = [NSString stringWithFormat:@"%@",model.name];
    _time.text = [NSString stringWithFormat:@"%@",model.time];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
